home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 101-125 / disk_107 / prosuite / setwait / pointers.c < prev    next >
C/C++ Source or Header  |  1992-05-06  |  2KB  |  58 lines

  1.  
  2. /* *** pointers.c ***********************************************************
  3.  *
  4.  * Intuition Wait Pointers Routines
  5.  *     from Book 1 of the Amiga Programmers' Suite by RJ Mical
  6.  *
  7.  * Copyright (C) 1986, 1987, Robert J. Mical
  8.  * All Rights Reserved.
  9.  *
  10.  * Created for Amiga developers.
  11.  * Any or all of this code can be used in any program as long as this
  12.  * entire copyright notice is retained, ok?  Thanks.
  13.  *
  14.  * The Amiga Programmer's Suite Book 1 is copyrighted but freely distributable.
  15.  * All copyright notices and all file headers must be retained intact.
  16.  * The Amiga Programmer's Suite Book 1 may be compiled and assembled, and the 
  17.  * resultant object code may be included in any software product.  However, no 
  18.  * portion of the source listings or documentation of the Amiga Programmer's 
  19.  * Suite Book 1 may be distributed or sold for profit or in a for-profit 
  20.  * product without the written authorization of the author, RJ Mical.
  21.  * 
  22.  * HISTORY      NAME            DESCRIPTION
  23.  * -----------  --------------  --------------------------------------------
  24.  * 12 Aug 86    RJ >:-{)*       Prepare (clean house) for release
  25.  * 3 May 86     =RJ Mical=      Fix prop gadget for both 1.1 and 1.2
  26.  * 1 Feb 86     =RJ Mical=      Created this file.
  27.  *
  28.  * *********************************************************************** */
  29.  
  30.  
  31. #include <prosuite/prosuite.h>
  32. #include <prosuite/pointers.h>
  33.  
  34.  
  35.  
  36. VOID SetWaitPointer(pointnumber, window)
  37. SHORT pointnumber;
  38. struct Window *window;
  39. {
  40.     switch (pointnumber)
  41.         {
  42.         case GCRAFT_POINTER:
  43.             SetPointer(window, &GCraftWaitPointer[0], GCRAFTPOINT_HEIGHT,
  44.                     16, GCRAFTPOINT_XOFF, GCRAFTPOINT_YOFF);
  45.             break;
  46.         case WBENCH_POINTER:
  47.             SetPointer(window, &WBenchWaitPointer[0], WBENCHPOINT_HEIGHT,
  48.                     16, WBENCHPOINT_XOFF, WBENCHPOINT_YOFF);
  49.             break;
  50.         case ELECARTS_POINTER:
  51.         default:    /* This one is the default because it's my favorite */
  52.                 SetPointer(window, &ElecArtsWaitPointer[0], ELECARTSPOINT_HEIGHT,
  53.                     16, ELECARTSPOINT_XOFF, ELECARTSPOINT_YOFF);
  54.             break;
  55.         }
  56. }
  57.  
  58.